<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="../base_top.jsp" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>提交订单</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<style type="text/css">
		table,tr,td{
			border:1px solid;
		}
	</style>
  </head>
  
  <body>
  <form action="order/orderRefer" method="get">
  <div>
  <h3>收货人信息</h3>
  	<table>
  	<s:iterator value="#request['addList']" id="add">
  		<tr>
  			<td>
  			<s:if test="#request.add.ifdefault == 1">
  				<input type="radio" name="addId" value='<s:property value="#request.add.addressNum"/>' checked="checked"/>
  			</s:if>
  			<s:else>
  				<input type="radio" name="addId" value='<s:property value="#request.add.addressNum"/>'/>  				
  			</s:else>
  			</td>
  			<td><s:property value="#request.add.daName"/></td>
  			<td><s:property value="#request.add.daRegion"/></td>
  			<td><s:property value="#request.add.daPhonenum"/></td>
  		</tr>
  	</s:iterator>
  	</table>
  	<input type="button" value="使用新地址"/>
  </div>
  
  <div>
  <h3>支付方式</h3>
  <table>
  	<tr>
  		<td><input type="radio" name="order.orderPayWay" value="货到付款"/></td><td><input type="button" value="货到付款" /></td>
  		<td><input type="radio" name="order.orderPayWay" value="在线支付" checked="checked"/></td><td><input type="button" value="在线支付" /></td>
  	</tr>
  </table>
  </div>
  
  <div>
  <h3>配送方式</h3>
  <table>
  	<tr><td><input type="radio" name="order.orderTransport" value="快递" checked="checked"/></td><td>快递运输</td></tr>
  	<tr><td><input type="radio" name="order.orderTransport" value="EMS"/><td>EMS运输</td></tr>
  	<tr><td><input type="radio" name="order.orderTransport" value="平邮"/><td>平邮运输</td></tr>
  </table>
  </div>
  
  <div>
  <h3>送货清单</h3>
  	<input type="hidden" name="order.shopkeeperNum" value='${shopkeeperNum}'/>
  	<table>
  		<% int i = 0; %>
  		<s:iterator value="#request['goodsList']" id="goods">
  		<input type="hidden" name="orderGoods[<%=i%>].gaPath" value='<s:property value="#request.goods.mainpic"/>'/>
  		<input type="hidden" name="orderGoods[<%=i%>].goodsNum" value='<s:property value="#request.goods.goodsNum"/>'/>
  		<input type="hidden" name="orderGoods[<%=i%>].goodsCount" value="${goodsCount}"/>
  		<input type="hidden" name="orderGoods[<%=i%>].goodsName" value='<s:property value="#request.goods.goodsName"/>'/>
  		<input type="hidden" name="orderGoods[<%=i%>].goodsRealPrice" value='<s:property value="#request.goods.goodsPrice"/>'/>
  		<% i++; %>
  		<tr><td><s:property value="#request.goods.userName"/></td></tr>
  		<tr>
  			<td><img src='<s:property value="#request.goods.mainpic"/>'/></td>
  			<td><s:property value="#request.goods.goodsName"/></td>
  			<td><s:property value="#request.goods.goodsPrice"/></td>
  			<td>x1</td>
  			<td>
  				<s:if test="#request.goods.goodsLeave > 0">有货</s:if>
  				<s:else>无货</s:else>
  			</td>
  		</tr>
  		</s:iterator>
  	
  	</table>
  </div>
  
  <div>
  <h3>订单备注</h3>
  <input type="text" name="order.orderLeave" size="50" maxlength="50" value=""/>
  </div>
  
  
  <div>
  	<h3>发票信息</h3>
  	<a>不开发票</a>&nbsp;&nbsp;&nbsp;&nbsp; <a>修改</a>
  </div>
  
  
  <div>
  	<input type="text" name="order.goodsAmount" value='<s:property value="#request.goods.goodsPrice"/>' readonly="readonly"/>
  	<input type="submit" value="提交订单"/>
  </div>
  </form>
  </body>
  </html>
  
  